package com.caiheng.api.service.mer;

import com.caiheng.api.entity.mer.Mer;
import com.caiheng.api.entity.wxuser.User;
import com.caiheng.api.service.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * 服务商家Service接口
 *
 * @author ruoyi
 * @date 2021-09-05
 */
public interface MerService extends BaseService<Mer> {

    //商家注册
    int register(Mer mer, User user,int ag_id);

    List<Mer> selectByState(Integer userId, Integer state, Integer cate_id,Integer cate_child_id, String keyword, int shop_type,
                            String sort, Integer offset, Integer pageSize, double longitude, double latitude);

    List<Mer> selectBySection(Integer cate_child_id, Integer offset, Integer pageSize, double longitude, double latitude);

    List<Mer> getListBySearch(Integer userId, String keyword,int shop_type,int pageIndex,int pageSize, double longitude,double latitude);

    Map<String,Object> getWalletDaysData(Integer userId, Integer merId);

    Mer getMerByUserIdUnCheck(int user_id);

    List<Mer> selectMyList(Integer user_id,Integer shop_type, Integer offset, Integer pageSize);

    int selectMyMerCount(int user_id,int shop_type);

    /**
     * @description 经纬度转换省市区
     * @param mer
     * @date 2022/5/12 11:21
     **/
    Mer getLocationInfo(Mer mer);

}
